import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

// 73682
public class P31 {
	private static int[] currency = new int[] {1, 2, 5, 10, 20, 50, 100 ,200};
	private final static int SUM = 200;
	private static List<Map<Integer, Integer>> result = new ArrayList<Map<Integer, Integer>>();
	
	public static void search(int index, int currentSum, Map<Integer, Integer> map) {
		if (currentSum == SUM) {
			result.add(map);
			return;
		}
		
		if (index == currency.length) {
			return;
		}
		
		if (currentSum > SUM) {
			return;
		}
		
		int count = (SUM - currentSum)/currency[index];
		for (int i = 0; i <= count && count > 0; i++) {
			//System.out.println(currency[index] + ":" + i);
			if (i != 0) {
				map.put(currency[index], i);
				//System.out.println(map);
			}
			//System.out.println(index + ":" + sum + ":" + currency[index]);
			search(index + 1, currentSum + currency[index] * i, new HashMap<Integer, Integer>(map));
		}
	}
	
	public static void main(String[] args) {
		search(0, 0, new HashMap<Integer, Integer>());
		System.out.println(result.size());
	}
}
